package org.study.tk.boot.config;

import tk.mybatis.mapper.genid.GenId;

/**
 * @author Administrator
 */
public class SnowflakeGenId implements GenId<Long> {
    @Override
    public Long genId(String table, String column) {
        SnowflakeIdWorker idWorker = ApplicationContextUtil.getBean(SnowflakeIdWorker.class);
        return idWorker.nextId();
    }
}
